<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery-1.12.4.min.js"></script>
</head>
<body>
<div id="app"></div>
<input type="button" value="Get" onclick="getDate()">


<script>
    function getDate() {
        $.get('http://localhost:8081/login',function (msg) {
            $("#app").html(msg);

        })

    }
    
</script>
</body>
</html>